package com.ym521.freesnack.core

import android.view.View
import com.ym521.freesnack.theme.FreeSnackTheme

/**
 *@author Ym
 *E-mail: 2435970206@qq.com
 *createTime:2024/3/3
 *explain:
 *
 */
internal object FreeSnackFactory {
    private val freeSnack: IFreeSnack by lazy {
        FreeSnackBuilder()
    }

    fun topShow(
        view: View,
        content: String,
        time: Int,
        theme: FreeSnackTheme = FreeSnackTheme.LIGHT,
    ) {
        freeSnack.snackBarTop(view, content, time,theme)
    }

    fun centerShow(
        view: View,
        content: String,
        time: Int,
        theme: FreeSnackTheme = FreeSnackTheme.LIGHT,
    ) {
        freeSnack.snackBarCenter(view, content, time,theme)
    }

    fun bottomShow(
        view: View,
        content: String,
        time: Int,
        theme: FreeSnackTheme = FreeSnackTheme.LIGHT,
    ) {
        freeSnack.snackBarBottom(view, content, time,theme)
    }

}